package com.countryside.service.impl;

import com.countryside.mapper.CompanyMapper;
import com.countryside.pojo.Company;
import com.countryside.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    CompanyMapper companyMapper;
    @Override
    public int addCompany(Company company) {
        return companyMapper.addCompany(company);
    }
    @Override
    public Company getCompany(String userId) {
        return companyMapper.getCompany(userId);
    }
    @Override
    public int updateCompany(Company company) {
        return companyMapper.updateCompany(company);
    }
}
